// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
  .el-dropdown-menu__item {
    font-size: 12px;
    height: 30px;
    line-height: 30px;
  }  
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

// form
.el-form-item__label {
  padding: 0 15px 0 0;
}

// menu
.el-menu {
  .el-menu-item, .el-submenu__title {
    height: 40px;
    line-height: 40px;
    font-size: 12px;
    margin-left: -3px !important;

    .svg-icon {
      margin-right: 19px !important;

      & + span {
        display: inline-block !important;
        height: 40px !important;
        line-height: 36px !important;
      }
    }
  }
}

.el-menu-item.is-active, .el-submenu.is-active > .el-submenu__title {
  background-color: $subMenuHover !important;
  > span {
    color: $subMenuActiveText !important;
  }
}

.tags-view-container {
  height: 40px !important;

  .tags-view-item {
    height: 27px !important;
    line-height: 27px !important;
    margin-top: 9px !important;
  }

  .el-scrollbar__wrap {
    height: 57px !important;
  }
}

.el-dialog__wrapper {
  .el-dialog__footer {
    padding: 0 20px 30px;
    // button {
    //   width: 105px;
    //   height: 36px;;
    // }
    .el-button+.el-button {
      margin-left: 5px;
    }
  }
  .el-dialog__header{
    padding-bottom: 0px;
  }
}

.el-menu--vertical {
  .el-menu--popup {
    padding: 0;
  }

  .el-menu--popup-right-start {
    margin-left: 10px;
    margin-right: 10px;
  }
}

.navbar .breadcrumb-container {
  .el-breadcrumb__item .no-redirect {
    color: #333333 !important;
  }
}

.el-tooltip__popper {
  max-width: 300px;
}
